package com.example.ymm.modules1.mapper.ex;

import com.example.ymm.base.CoreMapper;
import com.example.ymm.modules1.entity.hl.ex.ExUserAnser;
import com.example.ymm.modules1.query.hl.ex.ExPublishOptionQueryCriteria;
import com.example.ymm.modules1.query.hl.ex.ExUserAnserQueryCriteria;
import com.example.ymm.modules1.service.dto.heng.ex.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
@Mapper
public interface ExUserAnserMapper extends CoreMapper<ExUserAnser> {

    UserAnserDto getUserTrueScore(ExUserAnserQueryCriteria criteria);

    UserAnserDto getUserErroScore(ExUserAnserQueryCriteria criteria);

   List<UserAnserView> getUserAnsers(ExUserAnserQueryCriteria criteria);

    List<UserOptionView> getUserOptions(ExUserAnserQueryCriteria criteria);

    /**
     * 获取正确选项信息
     * @param criteria
     * @return
     */
    List<PublishOptionView> getPublishOptions(ExPublishOptionQueryCriteria criteria);


    List<ExUserAnser> changeQuestions();


    /**
     * 统计 用户选项字母 每个选了多少 （性格测试）
     */
    List<UserCountLetterListDto> xinGeCountLetterList(ExUserAnserQueryCriteria criteria);


}